/**
 *  Test : test.lab1.dao.SpringDao.java
 *  Create date : 2013/1/19 
 */
package training.dao;

import java.io.Serializable;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 *
 * <p>Created at 2013/1/19</p>
 * <p>version : 1.0.0 </p>
 * <p>Copyright: Copyright (c) 2013 by</p>
 * @author fatsung
 *
 */
public class HibernateDao<Bean extends Serializable, ID extends Serializable> extends baytony.db.hibernate.HibernateDao<Bean,ID> {
	
	@Autowired(required=true)
	@Qualifier("sessionFactory")
	private SessionFactory sessionFactory;

	@Override
	protected SessionFactory getSessionFactory() {
		return sessionFactory;
	}
	
	

}
